using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace server_logic_simulator
{
    public static class Utils
    {
        private static Random mBattleRandom = new Random();

        // Returns a random int number between and min [inclusive] and max [inclusive] (Read Only).
        public static int Random(int min, int max)
        {
            return mBattleRandom.Next(min, max);
        }

        public static int Clamp(int value, int min, int max)
        {
            return (value < min) ? min : (value > max) ? max : value;
        }
    }
}